home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga Memory Map Needed!!!
- Date: 30 Jan 1996 00:03:50 +0100
- Organization: dis-
- Message-ID: <4ejjom$na7@serpens.rhein.de>
- References: <310495eb@gauss.demon.co.uk> <1109oaw60.alamito@marketgraph.xs4all.nl> <4eisdt$dkn@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: serpens.rhein.de
-
- fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer) writes:
-
- >Am I right it doesn't change once the computer has booted ?
-
- Depends on what you think is "booted". It surely doesn't change at
- the time the startup-sequence is run. If it would it could cause
- every program to crash because there is no way for a program to find
- out wether it did change.
-
- >The question is if I catch it once at programstart, does it make a difference.
-
- No. In fact you are supposed to catch it at program start because the pointer
- usually resides in chip memory (or the access is emulated when you run Enforcer).
- Copying the pointer to a location in fast memory is therefore faster.
-
- >Same question goes for other libs:
-
- >if I open a lib each time I call a function of it (for example gfx.library),
- >will this puzzle up something, i.e is my task to do all lib calls
- >with one lib-handle ?
-
- It isn't. If you insist to open and close a library that often you just add
- lots of overhead to each call. Also, if you close a library the library base
- pointer becomes invalid.
-
- Another question is what happens if one task openes a library several times
- without closing it. Some libraries will return different bases everytime
- they are opened, so you have to be careful. Best is to avoid to open a library
- several times within a task.
-
- BTW, why don't you read the RKRMs ? They do answer your questions.
-
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-